package com.lovo.sheyingback.dao;

import com.lovo.sheyingback.bean.Content;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContentMapper {
    List<Content> listContent(Content content);
    List<Content> listContentByType(Integer typeId);
    Content getById(Integer id);
    int getMaxIndex(Integer typeId);
    int insert(Content content);
    int update(Content content);
    int updateIndex(Integer typeId,Integer index,Integer val);
}
